{extend name="public/base"/}
{block name="style"}

{/block}
{block name="body"}
<style>
    .menuBox li {
        float: left;
        width: 55px;
        height: 35px;
        line-height: 35px;
        text-align: center;
        font-size: 16px;
        -moz-border-radius: 8px;
        border-radius: 8px;
    }
	.sBtn {
		width: 100px;
		height: 26px;
		padding:5px 20px;
		text-align: center;
		background: #f26552;
		color: #fff;
		border-radius: 5px;
	}
</style>
{include file="public/header" /}

<div class="pageBox userBox" >
    <div class="userLeft">
        <div class="headPic">
            {if $avatar ==""}
            <img id="userPicShow" src="__PUBLIC__/novel/images/ser.png"/>
            {else}
            <img id="userPicShow" src="{$avatar}"/>
            {/if}
            <span>{$nickname}</span>
        </div>
        <ul>
            <li ><a href="/personal/info">我的主页</a></li>
            <li ><a href="/personal/bookcase">我的书架</a></li>
            <li ><a href="/personal/review">我的书评</a></li>
            <li ><a href="/personal/paylog/">充值记录</a></li>
			<li class="liHove"><a href="/personal/history/">阅读历史</a></li>
            <li ><a href="/personal/moneylog/">订阅记录</a></li>
            <li ><a href="/personal/bonuslog/">打赏记录</a></li>
			<li ><a href="{:config('writer_url')}">作家中心</a></li>
        </ul>    
    </div>
    <div class="userRight">
        <div class="Tit caseIco">阅读历史<span>总共{$count}本</span></div>
        
		<div class="userCaseBox">
            <ul class="clearfix">
				{volist name="list" id="vo"}
                    <li>
                    	<a target="_blank" href="{:url('/book/info',array("id"=>$vo.articleid))}">
                    		<img src="{$Think.config.web_site_url}{$vo.articleid|get_novel=###,'cover'}">
                    	</a>
                    	<span>{$vo.name}</span>
						<span>{$vo.chapterid|get_document_field='chapter',###,'id','chaptername'}</span>
                    	<span>
                    		<a target="_blank" href="{$Think.config.web_pc_url}/chapter/read/{$vo.articleid}/{$vo.chapterid}.html" class="sBtn">继续阅读</a>
                    	</span>
                    </li>
                {/volist}                
            </ul>
        </div>
        <div style="text-align:center;margin:0 auto">{$page}</div>
       
    </div>
</div>
{block name="include"}{include file="public:footer" /}{/block}
{/block}
{block name="script"}
	<script type="text/javascript" src="__PUBLIC__/novel/js/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/novel/js/common.js"></script>
	<script type="text/javascript">
		
		function deletec(id){

			query = {'bookcaseid':id};
			$.ajax({
                type: 'POST',
                url:'/personal/bookcase/',
				data : query,
                dataType: 'json',
                success: function(json){
                    window.location.reload();
                },
                error: function(xhr, type){
                	message(2,'操作失败')
                }
            });
		};
	</script>
{/block}